<%@page import="yxnote.Helper"%>
<%@page import="post.*" %>
<%@page import="category.Utils" %>
<%@ include file="/layout/top.jsp" %>
<% Post p = post.Utils.find(request.getParameter("id")); %>
<% if (null == p) { %>
not found
<% } else { %>
<h1><%= p.getTitle() %></h1>
<div class="date"><%= Helper.dateFormat(p.getAddDate()) %></div>
<div class="category"><%= category.Utils.getNameByKey(p.getCategory()) %></div>
<div class="content"><%= p.getContent().getValue() %></div>
<% } %>
<%@ include file="/layout/foot.jsp" %>